/**
 * 北谷信息科技（广州）有限公司拥有本软件所有版权 © 2022，并保留所有权利。
 * Copyright © 2022, North Valley Information Technology (Guangzhou) Company
 * Limited, All Rights Reserved.
 */

package main.com.scrapy;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.databind.ObjectMapper;
import main.com.scrapy.entity.ProductParam;

/**
 * TODO: 给出类和接口说明
 *
 * @author Double
 * <p><b>Creation Time:</b> 2022/9/21 10:09</p>
 * @since scrapy-1688
 */
public class JsonTest {

  public static void main(String[] args) throws Exception {
    ProductParam param = new ProductParam();
    String jsonString = JSONObject.toJSONString(param);

    ObjectMapper objectMapper = new ObjectMapper();
    String s = objectMapper.writeValueAsString(jsonString);
    System.out.println("=====json工具测试======");
  }
}
